Skip to content

Conversation

@fbusato
Copy link
Contributor

@fbusato fbusato commented Jan 9, 2026

Description

The PR introduces the _CCCL_LIFETIMEBOUND macro to handle the lifetimebound attribute across different compilers, including Clang and MSVC.

The macro will be useful to trigger compile-time warning for potentially dangling references.
One example is mdspan to DLPack #7027

Thanks @gevtushenko for the idea

@fbusato fbusato self-assigned this Jan 9, 2026
@fbusato fbusato added the 3.2.0 label Jan 9, 2026
@fbusato fbusato requested a review from a team as a code owner January 9, 2026 19:56
@fbusato fbusato added this to CCCL Jan 9, 2026
@fbusato fbusato requested a review from davebayer January 9, 2026 19:56
@github-project-automation github-project-automation bot moved this to Todo in CCCL Jan 9, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Jan 9, 2026
@fbusato fbusato requested a review from a team as a code owner January 9, 2026 19:57
@fbusato fbusato requested a review from gonidelis January 9, 2026 19:57
@github-actions

This comment has been minimized.

Copy link
Contributor

@davebayer davebayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about the tests. If the attribute doesn't work properly, it's the compiler's problem and we cannot do anything about it

@github-project-automation github-project-automation bot moved this from In Review to In Progress in CCCL Jan 12, 2026
@fbusato fbusato moved this from In Progress to In Review in CCCL Jan 14, 2026
@fbusato fbusato requested a review from davebayer January 14, 2026 18:19
@github-project-automation github-project-automation bot moved this from In Review to In Progress in CCCL Jan 14, 2026
@fbusato fbusato requested a review from davebayer January 14, 2026 18:53
@github-project-automation github-project-automation bot moved this from In Progress to In Review in CCCL Jan 14, 2026
@fbusato fbusato enabled auto-merge (squash) January 14, 2026 19:07
@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 42m: Pass: 100%/84 | Total: 20h 44m | Max: 1h 42m | Hits: 97%/198723

See results here.

@fbusato fbusato merged commit 56a3d4e into NVIDIA:main Jan 14, 2026
96 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants